.software-self-service {
  @include vertical-page-tab-panel-layout;

  // TODO: empty table styling differs slightly from figma (font size, color, spacing), why?
  .empty-table__container {
    margin: 64px 0;
  }

  &__self-service-card {
    @include vertical-card-layout;
  }

  &__mobile-installers {
    @include flex-column-16px-gap;
    min-height: 300px; // Prevents category dropdown from being cut off from short software list's UI
  }

  &__header-filters {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: $pad-medium;
    align-items: center;

    .search-field__tooltip-container {
      width: 100%;
    }
  }

  &__table {
    display: flex;
    flex-direction: row;

    > *:nth-child(2) {
      flex-grow: 1;
    }

    .data-table-block .data-table__wrapper {
      margin-top: 0;
    }

    .self-service-table__status-content,
    .table-container .children-wrapper {
      display: flex;
      align-items: center;
      gap: $pad-small;
    }

    // No column shift when changed statuses
    // min-width longest status: "Failed (uninstall)"
    .self-service-table__status-content {
      min-width: 138px;
    }

    .self-service-table__item-status-button {
      height: auto;
    }

    .self-service-table__item-actions {
      display: flex;
      flex-direction: row;
      gap: $pad-large;
    }
  }

  /* Ensures table doesn't bleed over 100% */
  .data-table__table {
    table-layout: fixed;
    width: 100%;
  }

  /* Override any defaults for fixed column width */
  .data-table__table th.ui_status__header,
  .data-table__table td.ui_status__cell {
    width: 140px;
    max-width: 140px;
    min-width: 140px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* Override any defaults for fixed column width */
  .data-table__table th.status__header,
  .data-table__table td.status__cell {
    width: 230px;
    max-width: 230px;
    min-width: 230px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .data-table-block .data-table tbody {
    .self-service-table__item-action {
      min-width: 90px; // Second action buttons align between rows

      .component__tooltip-wrapper {
        margin: 0; // Override 10px vertical margin
      }
    }
  }

  .categories-menu {
    display: none;
  }

  // Custom breakpoint to fit table with categories
  @media (min-width: 1070px) {
    .categories-menu {
      display: flex;
    }

    &__categories-dropdown {
      display: none;
    }
  }
}
